Module-level declarations

Types

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
entity companion
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
function create_companion(companion_data: companion_dto, owner: account)
Link copied to clipboard
Link copied to clipboard
@extend(handle_evm_event) function handle_evm_event(event_data: event_data)

Queries

Link copied to clipboard
@mount("companions.get_all_companions") query get_all_companions(account_id: byte_array): list<companion_dto>
Link copied to clipboard
@mount("companions.get_authorized_contract_by_evm_address") query get_authorized_contract_by_evm_address(evm_address: byte_array): authorized_contract_dto?
Link copied to clipboard
@mount("companions.get_authorized_contract_by_name") query get_authorized_contract_by_name(name: text): authorized_contract_dto?
Link copied to clipboard
@mount("companions.get_authorized_contracts") query get_authorized_contracts(): list<authorized_contract_dto>
Link copied to clipboard
@mount("companions.get_companion_info") query get_companion_info(token_id: integer, evm_address: byte_array): companion_dto?
Link copied to clipboard
@mount("companions.get_companions_config") query get_companions_config(): companions_config_dto
Link copied to clipboard
@mount("companions.get_equipped_companions") query get_equipped_companions(account_id: byte_array): list<companion_dto>

Operations

Link copied to clipboard
@mount("companions.register_authorized_contract") operation register_authorized_contract(evm_address: byte_array, name: text)
Link copied to clipboard
@mount("companions.register_batch_companion") operation register_batch_companion(companions: list<companion_dto>)
Link copied to clipboard
@mount("companions.register_companion") operation register_companion(companion_data: companion_dto)
Link copied to clipboard
@mount("companions.set_max_equipped_companions") operation set_max_equipped_companions(max_equipped_companions: integer)
Link copied to clipboard
@mount("companions.toggle_companions") operation toggle_companions(account_id: byte_array, auth_descriptor_id: byte_array, companions: list<companion_token_dto>)
Link copied to clipboard
@mount("companions.update_companion_metadata") operation update_companion_metadata(token_id: integer, evm_address: byte_array, metadata: json)